import request from '@/utils/request'

/**
 * 运维管理数据
 */
export const runFix = () => {
  return request({
    url: '/light/dashboard/getStreets',
    method: 'POST'
  })
}

/**
 * 报警管理列表
 * @returns
 */
export const alarmList = () => {
  return request({
    url: '/light/dashboard/WarningManager',
    method: 'POST'
  })
}

/**
 * 查询所有灯杆列表
 * @returns
 */
export const lampPost = () => {
  return request({
    url: '/light/lampPost'
  })
}

/**
 * 路灯报警记录查询
 */
export const lampAlarmList = (params, page, size) => {
  return request({
    url: `/light/dashboard/getWarningInfo/${page}/${size}`,
    method: 'POST',
    data: params
  })
}

/**
 * @description: 平潭大屏GIS撒点-报警器
 * @return {type}
 */
export const crAlarmList = () => {
  return request({
    url: '/crgas/crAlarmFlow/all/detail',
    method: 'POST'
  })
}
